package cn.seaboot.admin.api.bean;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Size;

import java.io.Serializable;

/**
 * POJO
 * 接口分组 [t_api_group]
 *
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "接口分组 [t_api_group] 实体类")
public class ApiAction implements Serializable {

    private static final long serialVersionUID = -2622075922192505002L;
    /**
     * ID
     */
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 工程ID
     */
    @Size( max = 32)
    @Schema(description = "工程ID")
    private String projectId;
    /**
     * 全类名
     */
    @Size( max = 64)
    @Schema(description = "全类名")
    private String controllerClass;
    /**
     * 地址
     */
    @Size( max = 255)
    @Schema(description = "地址")
    private String requestMapping;
    /**
     * 描述
     */
    @Size( max = 128)
    @Schema(description = "描述")
    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getControllerClass() {
        return controllerClass;
    }

    public void setControllerClass(String controllerClass) {
        this.controllerClass = controllerClass;
    }

    public String getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(String requestMapping) {
        this.requestMapping = requestMapping;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "ApiGroup{" +
                "id=" + id +
                ", projectId='" + projectId + '\'' +
                ", controllerClass='" + controllerClass + '\'' +
                ", requestMapping='" + requestMapping + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
